#ifndef DOUBAN_FMRADIO_FMMODULE_H
#define DOUBAN_FMRADIO_FMMODULE_H

#include "douban_global.h"
#include <QList>

class QFrame;
class QNetworkCookie;

namespace Douban
{
	class FMModulePrivate;
	class FMModule
	{
		public:
			enum Channel{
				UnSet = -1,
				Private = 0,
				Chinese = 1,
				US = 2,
				Cantonese = 6,
				Seventy = 3,
				Eighty = 4,
				Ninety = 5,
				Soft = 9,
				Rock = 7,
				Indie = 8
			};

			FMModule(DoubanId uid);
			~FMModule();

			void configChanged();

			void setCookie(const QList<QNetworkCookie>&);
			void clearCookie();

			void start();
			void stop();

			void setVisible(bool visible);
		private:
			FMModulePrivate*	m_impl;
	};
}
#endif // FMMODULE_H
